package cn.bs.domain.dao;


import java.util.Date;

public class Comment {
    private Integer id;
    private Integer userId;//评论者id
    private Integer postId;//评论帖子id
    private Integer fatherId;//父评论id
    private Integer sonCount;//子评论数量
    private String content;//评论内容
    private Integer status;//0：正常，1：删除
    private Date date;//评论时间

    public Comment() {
    }

    public Comment(Integer id, Integer userId, Integer postId, Integer fatherId,
                   Integer sonCount, String content, Integer status, Date date) {
        this.id = id;
        this.userId = userId;
        this.postId = postId;
        this.fatherId = fatherId;
        this.sonCount = sonCount;
        this.content = content;
        this.status = status;
        this.date = date;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    public Integer getFatherId() {
        return fatherId;
    }

    public void setFatherId(Integer fatherId) {
        this.fatherId = fatherId;
    }

    public Integer getSonCount() {
        return sonCount;
    }

    public void setSonCount(Integer sonCount) {
        this.sonCount = sonCount;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
}
